package com.sskj.level.bean;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;
import com.sskj.common.base.App;
import com.sskj.common.util.TimeFormatUtil;
import com.sskj.level.R;

public class TradeListBean {


    /**
     * en_id : 19
     * en_no : 33152656031323
     * userid : 25
     * account : 3841125
     * username : 现在
     * pid : 3
     * pname : ETH/USDT
     * buyprice : 718.5000
     * buynum : 10
     * price : 14.3700
     * totalprice : 143.7000
     * otype : 1
     * addtime : 1526560313
     * sxfee : 7.1850
     * dealtime : {}
     * state : 1
     * deposit : 0.0000
     * tpath : {}
     */

    private String en_id;
    private String type;
    private String en_no;
    private String userid;
    private String account;
    private String username;
    private String pid;
    private String pname;
    private String wtprice1;
    private String wtnum;
    private String price;
    private String totalprice;
    private String otype;
    private String add_time;
    private String sxfee;

    private String state;
    private String deposit;
    private String leverage;
    /**
     * dayfee : 0.0000
     * sellprice : 708.8900
     * selltime : 1526558911
     * profit : 0.0000
     * pc_type : 1
     */

    private String dayfee;
    private String sellprice;
    private String selltime;
    private String profit;
    private String pc_type;
    /**
     * hold_id : 11
     * hold_no : 32152655729743
     * stopwin : 0.00
     * stoploss : 0.00
     * poit_win : 1
     * poit_loss : 1
     * fdyk : 14.0180
     * newprice : 8499.9800
     */

    private String hold_id;
    private String hold_no;
    private String stopwin;
    private String stoploss;
    private String poit_win;
    private String poit_loss;
    private String fdyk;
    private String newprice;

    public String getMarketLimit() {
        if (TextUtils.isEmpty(type)) {
            return App.INSTANCE.getString(R.string.levelJavaTradeListBean1);
        }
        switch (type) {
            case "1":
                return App.INSTANCE.getString(R.string.levelJavaTradeListBean3);
            case "2":
                return App.INSTANCE.getString(R.string.levelJavaTradeListBean1);
            case "3":
                return App.INSTANCE.getString(R.string.levelJavaTradeListBean7);
        }
        return App.INSTANCE.getString(R.string.levelJavaTradeListBean1);
    }


    public String getLeverage() {
        return leverage;
    }

    public void setLeverage(String leverage) {
        this.leverage = leverage;
    }

    public String getEn_id() {
        return en_id;
    }

    public void setEn_id(String en_id) {
        this.en_id = en_id;
    }

    public String getEn_no() {
        return en_no;
    }

    public void setEn_no(String en_no) {
        this.en_no = en_no;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname.replace("/", "_").toUpperCase();
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getWtprice1() {
        return wtprice1;
    }

    public void setWtprice1(String wtprice1) {
        this.wtprice1 = wtprice1;
    }

    public String getWtnum() {
        return wtnum;
    }

    public void setWtnum(String wtnum) {
        this.wtnum = wtnum;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(String totalprice) {
        this.totalprice = totalprice;
    }

    public String getOtype() {
        return otype;
    }

    public void setOtype(String otype) {
        this.otype = otype;
    }

    public String getAdd_time() {
        return TimeFormatUtil.SF_FORMAT_N.format(Long.valueOf(add_time) * 1000);
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getSxfee() {
        return sxfee;
    }

    public void setSxfee(String sxfee) {
        this.sxfee = sxfee;
    }


    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDeposit() {
        return deposit;
    }

    public void setDeposit(String deposit) {
        this.deposit = deposit;
    }

    public String getDayfee() {
        return dayfee;
    }

    public void setDayfee(String dayfee) {
        this.dayfee = dayfee;
    }

    public String getSellprice() {
        return sellprice;
    }

    public void setSellprice(String sellprice) {
        this.sellprice = sellprice;
    }

    public String getSelltime() {
        return TimeFormatUtil.SF_FORMAT_N.format(Long.valueOf(selltime) * 1000);
    }

    public void setSelltime(String selltime) {
        this.selltime = selltime;
    }

    public String getProfit() {
        return profit;
    }

    public void setProfit(String profit) {
        this.profit = profit;
    }

    public String getPc_type() {
        return pc_type;
    }

    public void setPc_type(String pc_type) {
        this.pc_type = pc_type;
    }

    public String getHold_id() {
        return hold_id;
    }

    public void setHold_id(String hold_id) {
        this.hold_id = hold_id;
    }

    public String getHold_no() {
        return hold_no;
    }

    public void setHold_no(String hold_no) {
        this.hold_no = hold_no;
    }

    public String getStopwin() {
        return stopwin;
    }

    public void setStopwin(String stopwin) {
        this.stopwin = stopwin;
    }

    public String getStoploss() {
        return stoploss;
    }

    public void setStoploss(String stoploss) {
        this.stoploss = stoploss;
    }

    public String getPoit_win() {
        return poit_win;
    }

    public void setPoit_win(String poit_win) {
        this.poit_win = poit_win;
    }

    public String getPoit_loss() {
        return poit_loss;
    }

    public void setPoit_loss(String poit_loss) {
        this.poit_loss = poit_loss;
    }

    public String getFdyk() {
        return fdyk;
    }

    public void setFdyk(String fdyk) {
        this.fdyk = fdyk;
    }

    public String getNewprice() {
        return newprice;
    }

    public void setNewprice(String newprice) {
        this.newprice = newprice;
    }


}
